package com.itheima.reggie.constant;

public class CommonConstant {

    public static final String[] LOGINURLS = {
            "/backends/employee/login",
            "/backends/employee/logout",
            "/fronts/user/login",
            "/fronts/user/logout",
            "/fronts/user/sendMsg",
            "/backend/**",
            "/front/**",
            "/common/**"
    };

    //登录的用户名常量
    public  static final String FRONTUSER = "front:";
    public  static final String BACKENDUSER = "backend:";

    //前后端请求头
    public  static final String HEADBACKEND = "/backends/";
    public  static final String HEADFRONT = "/fronts/";

    //拦截器错误返回常量
    public static final String FILTERERRORMSG = "NOTLOGIN";

    //添加修改公共字段
    public static final String MYSQL_CREATETIME = "createTime";
    public static final String MYSQL_UPDATETIME = "updateTime";

    public static final String MYSQL_CREATEUSER = "createUser";
    public static final String MYSQL_UPDATEUSER = "updateUser";

    //表employee字段常量
    public static final String MYSQL_EMPLOYEE_PASSWORD = "password";
    public static final String MYSQL_EMPLOYEE_PASSWORD_DEFAULT = "123456";
    public static final String MYSQL_EMPLOYEE_NAME = "name";
    public static final String MYSQL_EMPLOYEE_USERNAME = "username";

    //文件保存路径
    public static final String IMAGE_PATH = "file.path";
    public static final String IMAGE_ACTIVE = "file.relative";

    //短信验证码配置信息
    public static final String SMS_HOST = "sms.host";
    public static final String SMS_PATH = "sms.path";
    public static final String SMS_METHOD = "sms.method";
    public static final String SMS_APPCODE = "sms.appcode";
    public static final String SMS_SMSSIGNID = "sms.smsSignId";
    public static final String SMS_TEMPLATEID = "sms.templateId";

    //阿里云存储配置
    public static final String OSS_ENDPOINT = "oss.endpoint";
    public static final String OSS_ACCESSKEYID = "oss.accessKeyId";
    public static final String OSS_ACCESSKEYSECRET = "oss.accessKeySecret";
    public static final String OSS_BUCKETNAME = "oss.bucketName";
    public static final String OSS_IMAGEURL = "oss.imageUrl";
}
